package com.vpx.server.service.system.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.vpx.server.bean.entity.CType;
import com.vpx.server.mapper.system.CTypeMapper;
import com.vpx.server.service.system.CTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【c_type】的数据库操作Service实现
* @createDate 2023-11-18 15:37:22
*/
@Service
public class CTypeServiceImpl extends ServiceImpl<CTypeMapper, CType>
    implements CTypeService {
    @Autowired
    private  CTypeMapper cTypeMapper;
    @Override
    public void insert(CType cType) {

        cTypeMapper.add(cType);
    }

    @Override
    public void update(CType cType) {
       cTypeMapper.updateById(cType);
    }

    @Override
    public void delete(CType cType) {
       cTypeMapper.deleteById(cType);
    }

    @Override
    public List<CType> selectAll() {
        return cTypeMapper.selectAll();
    }
}




